/*
 *= require bootstrap.min
 *= require font-awesome
 *= require highlight
 *= require social-share-button
 *= require jquery.atwho
 *= require jquery.fluidbox
 *= require bootstrap-tokenfield
 #= require jquery.pagedown-bootstrap
 *= require_self
 */
@import "vars";

@mixin clearfix() {
  &:before,
  &:after {
    content: " ";
    display: table;
  }
  &:after {
    clear: both;
  }
  & {
    zoom: 1;
  }
}

/* Bootstrap Theme */
body {
  background: #E7EAEC;
  color: $black;
  font-family: Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", Roboto, "Heiti SC", "Microsoft Yahei", sans-serif;
  padding-top: 65px;
}

.header {
  .navbar {
    background-color: #FFF;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .11);
    margin-bottom: 15px;
    border: 0px;
    color: $blueText;
  }

  .navbar-brand {
    color: #666 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    margin-left: 0 !important;
    b {
      color: $red;
    }
  }
  .navbar-default .navbar-brand,
  .navbar-default .navbar-nav > li > a {
    color: #333;
    border-bottom: 3px solid #FFF;
    padding-bottom: 12px;
  }
  .navbar-default .navbar-nav > li > a:active {
    background-color: $grayDark;
    border-bottom-color: #999;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu .divider {
    color: #999 !important;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu li.active a {
    border-bottom: 0px;
    color: $red;
  }
  .navbar-inverse .navbar-toggle {
    color: #333;
    padding: 3px 9px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
  }
  .navbar-inverse .navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.05);
  }
  .navbar-inverse .navbar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  .navbar-inverse .navbar-collapse,
  .navbar-inverse .navbar-form {
    border-color: $blueText;
  }
  nav.navbar-collapse.bs-navbar-collapse {
    border-color: rgba(255, 255, 255, 0.3);
  }
  .navbar-inverse .navbar-nav > .open > a,
  .navbar-inverse .navbar-nav > .open > a:focus,
  .navbar-inverse .navbar-nav > .open > a:hover {
    background: $grayDark;
    color: #333;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu {
    position: absolute;
    left: auto;
    right: 0;
    background: #FFF;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    color: #333;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu .divider {
    background-color: #F0F0F0;
  }
  .navbar-nav {
    li.active a,
    li.active a:focus,
    li.active a:hover {
      color: $red;
      background: transparent;
    }
  }

  .navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
  }
  .navbar-fixed-top, .navbar-fixed-bottom {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
  }

  #main-nav-menu {
    .navbar-nav {
      margin: 0px;
      a {
        color: #333;
        transition: all .2s ease-in-out;
      }
      li a:hover,
      li.active a,
      li.active a:focus,
      li.active a:hover {
        border-bottom: 3px solid $red;
        color: $red;
        background: transparent;
        padding-bottom: 12px;
      }
    }
  }

  .user-bar {
    .dropdown-toggle {
      display: block;
    }
    .navbar-toggle {
      display: none;
      padding: 6px 8px;
      margin: 0;
    }
  }

  @media (max-width: 767px) {
    .navbar-header {
      text-align: center;
      padding: 0;
      margin-bottom: -41px;
      .navbar-brand {
        font-size: 12px;
        float: none;
        margin: 0 auto;
        line-height: 46px;
      }
    }
    .navbar-nav {
      float: left;
      margin: 0px;
    }
    .navbar-nav > li {
      float: left;
    }
    .navbar-nav.navbar-right {
      float: right;
    }
    .user-bar {
      .dropdown-toggle {
        display: none;
      }
      .navbar-toggle {
        display: block;
        border-radius: 0px;
      }
      .dropdown.open .navbar-toggle {
        background-color: $grayDark;
      }
    }
  }

  .form-search {
    font-size: 14px;
    position: relative;
    margin-top: 13px;
    margin-right: 10px;

    .fa {
      color: #333;
      &:hover {
        color: #666;
      }
    }

    .fa-search {
      cursor: pointer;
      position: absolute;
      top: 6px;
      right: 0;
      transition: all .3s;
    }
    .btn-close {
      position: absolute;
      top: 6px;
      right: 0px;
      /*display: none;*/
      cursor: pointer;
      -webkit-transform: scale(0, 0);
      -moz-transform: scale(0, 0);
      transform: scale(0, 0);
      -webkit-transition: all .3s;
      -moz-transition: all .3s;
      transition: all .3s;
    }
    .control-label {
      font-weight: 500 !important;
    }
    .form-horizontal .control-label {
      padding-top: 16px;
    }
    .control-label.checkbox {
      text-align: left;
    }
    .form-control {
      font-size: 12px;
      border: none;
      width: 0px;
      height: 100%;
      padding: 6px 1px 4px 1px;
      margin-left: 4px;
      background: transparent;
      transition: all .3s;
      box-sizing: border-box;
      color: #333;
      &::-webkit-input-placeholder {
        color: #ddd;
      }
    }
    &.active {
      .form-control {
        width: 150px !important;
        cursor: text;
      }
      .fa-search {
        left: 0;
        right: auto;
      }
      .btn-close {
        -webkit-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        transform: scale(1, 1);
      }
    }

  }
}

.dropdown-menu {
  border-color: #FFF;
  border-radius: 2px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
}

a {
  color: $black;
}

.btn {
  border-radius: 3px;
  border: 1px solid #ccc;
  padding: 5px 18px;
  box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.15);
}

.btn-default {
  box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
}

.btn-default,
.btn-default:visited {
  background: #eee;
  border-color: #dadada;
}

.btn-default:hover {
  background: #eaeaea;
  border-color: #ddd;
}

.btn-default.active {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.btn-primary,
.btn-primary:visited {
  background: $blue;
  border-color: $blueDark;
  color: #FFF;
}

.btn-primary:hover {
  background: $blueLight;
  border-color: $blue;
}

.btn-primary.active {
  background: $blueDark;
  border-color: $blueDark;
}

.btn-danger,
.btn-danger:visited {
  background: $red;
  border-color: $redDark;
}

.btn-danger:hover {
  background: $redLight;
  border-color: $red;
}

.btn-danger.active {
  background: $redDark;
  border-color: $redDark;
}

.btn-warning,
.btn-warning:visited {
  background: $yellow;
  border-color: $yellow;
}

.btn-warning:hover {
  background: $yellowLight;
  border-color: $yellowLight;
}

.btn-warning.active {
  background: $yellowDark;
  border-color: $yellowDark;
}

.btn-success,
.btn-success:visited {
  background: $green;
  border-color: $greenDark;
}

.btn-success:hover {
  background: $greenLight;
  border-color: $green;
}

.btn-success.active {
  background: $greenDark;
  border-color: $greenDark;
}

.open > .dropdown-toggle.btn-primary {
  background: #0059C7;
}

.button-follow-user {
  padding: 5px 10px;
}

.navbar-btn {
  background: rgba(255, 255, 255, 0.1);
  color: $blueText;
  border: 0px;
}

.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: $blueText;
}

.label {
  font-weight: normal;
  border-radius: 2px;
  padding: 2px 4px;
}

.label-default {
  background: $grayLabel;
  color: $grayLabelText;
}

.label-primary {
  background: $blue;
}

.label-warning {
  background: $yellowLabel;
  color: $yellowLabelText;
}

.label-info {
  background: $blueLabel;
  color: $blueLabelText;
}

.label-danger {
  background: $redLabel;
  color: $redLabelText;
}

.label-success {
  background: $greenLabel;
  color: $greenLabelText;
}

.alert-success {
  background: $greenLabel;
  color: $greenLabelText;
}

.alert-info {
  background: $blueLabel;
  color: $blueLabelText;
}

.alert-warning {
  background: $yellowLabel;
  color: $yellowLabelText;
  hr {
    border-color: #DAC264 !important;
  }
}

.alert-danger {
  background: $redLabel;
  color: $redLabelText;
}

.form-group {
  label {
    font-weight: normal;
    color: rgba(0, 0, 0, 0.40);
    font-size: 13px;
    margin-bottom: 0px;
  }
}

.control-label {
  color: #333;
  font-weight: normal;
}

.control-label.checkbox {
  text-align: left;
}

.form-control {
  border-radius: 3px;
  border-color: #ddd;
  box-shadow: inset 0 0 0px rgba(0, 0, 0, 0) !important;
  transition: none;
  &:focus {
    box-shadow: inset 0 0px 0px #fff;
    border-color: $blueLight;
  }
  &[disabled], &[readonly] {
    background: #f0f0f0;
  }
}

textarea.form-control {
  border-radius: 0px;
}

textarea.form-control,
#preview.form-control {
  border: 1px solid #D5DCE1;
}

textarea.form-control,
#preview.form-control,
textarea.form-control:focus {
  padding: 6px;
  border-bottom-width: 1px;
}

#preview.form-control {
  display: none;
}

.editor-toolbar {
  .nav-pills {
  }
  .nav-pills > li > a {
    border-radius: 3px 3px 0 0;
    padding: 3px 23px;
    background-color: #f0f0f0;
    color: #999;
  }
  .nav-pills > li.active > a:link,
  .nav-pills > li.active > a:visited,
  .nav-pills > li.active > a:hover {
    background-color: $blueLight;
    color: #FFF;
  }
}

form {
  #preview {
    min-height: 500px;
    overflow-y: scroll;
  }
  .help-block {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 0px;
  }
  .form-actions {
    padding-left: 190px;
  }
}

.table-bordered > thead > tr > td, .table-bordered > thead > tr > th, .table > tr > th {
  border-bottom-width: 1px;
  border-bottom-width: 1px;
  background: #F0F0F0;
  background: #F0F0F0;
  color: #888;
  color: #888;
  font-weight: normal;
  font-weight: normal;
  font-size: 14px;
  font-size: 14px;
}

.table-striped > tr:nth-of-type(odd) {
  background: #FFF;
  background: #FFF;
}

.table-striped > tr:nth-of-type(even) {
  background: #f9f9f9;
  background: #f9f9f9;
}

.input-group-addon {
  background: #fff;
  border-color: #ddd;
  padding: 0 15px;
  color: #999;
  border-radius: 0px;
  border: 0px;
  border: 1px solid #D5DCE1;
}

.input-group-captcha {
  background: #FFF;
  border-radius: 3px 0 0 3px;
  img {
    border-radius: 3px 0 0 3px;
  }
}

.input-group-btn > .btn {
  padding: 6px 12px;
  &:focus {
    background: #FFF;
    border-color: #ccc;
  }
}

.input-group-btn:first-child > .btn {
  border-right: 0px;
}


.popover {
  border-radius: 3px;
  border-color: #eee;
  box-shadow: 0 1px 1px 0px rgba(0, 0, 0, 0.05);
}

.popover > .arrow {
  border-color: $grayDark;
}

.popover > .arrow:after {
  border-color: $grayDark;
}

.alert {
  padding: 5px 10px 3px;
  border: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0px;
  font-size: 13px;
  transform: scale(1, 1);
  transition: all .3s;

  strong {
    color: $redDark;
  }

  & > ul {
    padding: 5px 18px;
    list-style-type: square;
  }
  a.close {
    font-size: 14px;
    text-shadow: 0 0 0;
  }
}

.pagination {
  margin: 0;
  li > a {
    color: $black;
  }
  li.active > a,
  li.active > a:hover {
    background-color: $blueLight;
    border-color: $blueLight;
    color: $blueText;
  }
}

.pager {
  margin: 0px;
  .info {
    line-height: 32px;
    color: #ccc;
    samp {
      color: #999;
    }
  }
  li > a,
  li > span {
    color: #666;
    border-radius: 3px;
    border: 0px;
    background: transparent;
    &:hover {
      background: #fff;
    }
  }
  li.disabled > a,
  li.disabled > span {
    color: #ddd;
    background: transparent;
    &:hover {
      color: #ddd;
      background: transparent;
    }
  }
}

abbr[title] {
  border-bottom: 0px;
  cursor: text;
}

kbd {
  background-color: #f5f5f5;
  color: #999;
  border-radius: 2px;
  border-color: #fafafa;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  padding: 4px 5px;
}

.chosen-container {
  .chosen-single {
    border-radius: 0px;
    border: 0px;
    padding: 6px 0px 6px 4px;
    height: 34px;
    line-height: 24px;
    border-bottom: 1px solid #D5DCE1;
    div {
      top: 6px;
    }
  }
  .chosen-drop {
    box-shadow: 0 0 0 0;
  }
  .chosen-results {
    li.group-option {
      &:hover {
        background-color: $blueLight;
      }
    }
  }
}

.panel {
  border: 0px;
  border-radius: 3px;
  border: 0px;
  box-shadow: 0 0px 1px rgba(0, 0, 0, 0.09);

  .panel-heading {
    background: #f5f5f5;
    border-bottom-color: #e9e9e9;
    color: #777;
  }
  .panel-footer {
    background: #f5f5f5;
  }
}

.nav-stacked {
  margin-bottom: 15px;
}

.nav-stacked.nav-pills > li > a {
  text-align: right;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0px 3px 2px rgba(0, 0, 0, 0.03);
  padding: 5px 15px;
  margin-bottom: 0px;
  background: #fff;
  border-right: 2px solid $blackLight;
  color: #666;
}

.nav-stacked.nav-pills > li > a:hover {
  border-color: $blueLight;
  color: $blueLight;
  background-color: #fff;
}

.nav-stacked.nav-pills > li.active > a,
.nav-stacked.nav-pills > li.active > a:focus,
.nav-stacked.nav-pills > li.active > a:hover {
  color: $red;
  background-color: #FFF;
  border-color: $redLight;
}

/* Modal */
.modal {
  .modal-content {
    h4.title {
      margin-bottom: 20px;
      font-size: 15px;
    }
    border: 0px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15), 0px 0px 1px 1px rgba(0, 0, 0, 0.05);

    p {
      margin-bottom: 5px;
    }
  }
  .modal-header {
    border: 0px;
    padding-bottom: 0px;
    .close {
      margin-top: -8px;
      font-weight: normal;
      outline: none !important;
    }
    .modal-title {
      font-size: 16px;
    }
  }
  .modal-footer {
    border-color: #e5e5e5;
  }
}

.modal-backdrop.in {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

.fa-spin {
  -webkit-animation: fa-spin 0.8s infinite linear;
  animation: fa-spin 0.8s infinite linear;
}

/* App Style */
.opts {
  color: #666;
  a {
    margin-right: 5px;
  }
  a:link,
  a:visited {
    color: #666;
    text-decoration: none;
  }
  a:hover {
    color: #666;
    text-decoration: none;
  }
  .loading {
  }
}

.turbolinks-progress-bar {
  background-color: $red !important;
  height: 2px !important;
}

.pull-right.opts {
  a {
    margin-left: 5px;
    margin-right: 0px;
  }
}

.avatar {
  .uface,
  .media-object {
    border-radius: 120px;
  }
}

.avatar-16 {
  width: 16px;
  height: 16px;
  border-radius: 1px;
}

.avatar-48 {
  width: 48px;
  height: 48px;
  border-radius: 2px;
}

.avatar-120 {
  width: 80px;
  height: 80px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .avatar-48 {
    width: 32px;
    height: 32px;
  }
}

.uname {
  color: #666;
}

img.emoji {
  width: 20px;
  height: 20px;
}

.node-name {
  background: #f0f0f0;
  padding: 1px 3px;
  color: #777;
  margin-right: 5px;
  &:hover {
    color: #555;
    text-decoration: none;
    background: #e0e0e0;
  }
}

.fa.awesome {
  font-size: 13px;
  color: $red;
}

.notification-count {
  .count {
    margin-left: 4px;
    display: none;
    font-size: 12px;
  }
  .new {
    color: $redLight !important;
    .count {
      display: inline;
    }
  }
}

.deleted {
  text-decoration: line-through;
  color: $grayDark;
}

.no-result {
  color: #aaa;
  padding-bottom: 20px;
  text-align: center;
}

.opts a.active {
  .fa {
    @extend .animated;
    @extend .bounceIn;
    color: $redRose;
  }
}

@media (max-width: 480px) {
  .hidden-mobile {
    display: none !important;
  }
  .pagination {
    display: block;
    li {
      display: none;
    }
    li.prev,
    li.next {
      float: left;
      display: block;
      a {
        border-radius: 20px !important;
      }
    }
    li.next {
      float: right;
    }
  }
}

.node-list {
  .node {
    margin-bottom: 10px;
    margin-top: 0px;
    &:last-child {
      margin-bottom: 0px;
    }
    .media-left {
      min-width: 130px;
    }
    label {
      font-weight: normal;
      color: #aaa;
      text-align: right;
    }
    .name {
      margin-bottom: 10px;
      width: 200px;
      display: block;
      float: left;
      text-align: left;
      a:link, a:visited {
        color: #333;
      }
    }
  }
}

.topics {

  .suggest_topic {
    border-color: #ddd;
    border-left: 3px solid #EB5424;
  }
  .panel-body {
    padding: 0 15px;
  }
  .node-info {
    .name {
      strong {
        font-weight: bold;
        color: #666;
        text-align: left;
        font-size: 16px;
        padding-bottom: 10px;
      }
      .total {
        font-size: 12px;
        font-weight: normal;
        margin-left: 8px;
      }
      .button-block-node {
        font-size: 13px;
        border: 1px solid #e0e0e0;
      }
      .button-block-node.active {
        background-color: #e0e0e0;
        border-radius: #d0d0d0;
      }
    }
    .summary {
      color: #888;
      h1, h2, h3, h4, h5 {
        font-size: 14px;
      }
      font-size: 13px;
    }
  }
  .filter {
    padding: 3px 0 2px 0;
    font-size: 13px;
    color: #ccc;
    span.l {
      color: #bbb;
      margin-right: 5px;
    }
    a:link, a:visited {
      margin: 0 3px;
    }
    a:hover {
      text-decoration: underline;
    }
    a.popular {
      color: $red;
    }
    a.active {
      color: #333;
      border-bottom: 1px dotted #ccc;
      text-decoration: none;
    }
    a.popular.active {
      color: $red;
      border-bottom-color: $red;
    }
  }

  .topic {
    min-height: 68px;
    border-bottom: 1px solid #F0F0F0;
    padding: 10px 15px;
    margin: 0 -15px;
    vertical-align: top;
    //position: relative;
    &:last-child {
      border-bottom: 0px;
    }
    .avatar {
      text-align: center;
    }
    .title {
      word-break: break-all;
      font-size: 15px;
      i.fa {
        color: #999;
        margin-left: 3px;
      }
      i.fa-diamond {
        color: $red;
      }
      i.fa-check { color: $green; font-size: 18px; }
      i.fa-bug {
        color: gold
      }
      i.fa-star {
        color: gold
      }
      i.fa-thumb-tack {
        transform: rotate(20deg);
        -ms-transform: rotate(20deg); /* IE 9 */
        -moz-transform: rotate(20deg); /* Firefox */
        -webkit-transform: rotate(20deg); /* Safari 和 Chrome */
        -o-transform: rotate(20deg);
        color: $red
      }
    }
    .info {
      color: #aaa;
      font-size: 12px;
      margin-top: 10px;
      .node {
        padding: 1px 5px;
        color: #778087;
        text-decoration: none;
        background-color: #f5f5f5;
      }
      a {
        color: #666;
      }
    }
    .count {
      width: 100px;
      text-align: right;
      padding-top: 15px;
      a:link,
      a:hover,
      a:visited {
        line-height: 12px;
        color: #fff;
        font-weight: bold;
        border-radius: 80px;
        padding: 2px 10px 2px 10px;
        display: inline-block;
        text-decoration: none;
      }

      a:link {
        background: #98ACDF;
      }
      a:hover {
        background: #0069D6;
      }
      a.state-true,
      a:visited {
        background: #AAA;
      }
    }
  }
}

.topic-detail {

  i.fa-qrcode {
    color: #38ad5a
  }

  i.fa-money {
    color: red
  }

  margin-bottom: 0px;
  .panel-heading {
    padding: 15px;
    h1 {
      margin-top: 0;
      font-size: 24px;
      color: #333;
      text-align: left;
      line-height: 100%;
      margin-bottom: 8px;
      i.fa-check { color: $green; font-size: 24px; }
    }
    .avatar {
      text-align: right;
    }
  }

  .label-awesome {
    font-size: 13px;
    background: #FCF8F7;
    padding: 5px 15px;
    border-bottom: 1px solid #f3f0f0;
    color: #eb5424;

    a { color: #aAa5a4; }
  }

  .label-legal {
    font-size: 13px;
    padding: 3px 15px;
    border-top: 1px solid #eae5e4;

    a {
      color: #aAa5a4;
    }
  }

  .label-nopoint {
    font-size: 13px;
    background: #FCF8E3;
    padding: 3px 15px;
    border-top: 1px solid #FAEBCC;
    color: #ae938B;

    a {
      color: #ae938B;
    }
  }

  .info {
    color: #c0c0c0;
    font-size: 12px;
    a {
      color: #444;
    }
    .node {
      padding: 1px 0px;
      color: #778087;
      text-decoration: none;
      background-color: #f5f5f5;
    }
    em {
      font-style: normal;
    }

    .opts {
      a {
        margin-left: 5px;
        color: #999;
        &:hover {
          color: #333;
        }
      }
    }
  }
  #qrcode-body {
    height: 420px;
    width: 480px;
    canvas {
      width: 200px;
      height: 200px;
      position: absolute;
      margin: -100px 0 0 -100px;
      left: 50%;
      top: 50%;
    }
  }
}

.topic-reward {

  padding: 25px;
  margin-bottom: 40px;
  background-color: #f5f5f5;
  border-left: 2px solid #f57e42;
  box-sizing: border-box;
  box-shadow: 0 0 1px #d9d9d9;

  .btn {
    color: white;
    border-color: #f57e42;
    background: #f57e42;
  }

  .modal-body {
    padding-bottom: 80px;
  }
  .avatar {
    margin-bottom: 20px;
  }

  .media-object {
    display: inline;
  }

  .fa-quote-left, .fa-quote-right {
    color: #c0c0c0;
  }

  .infos-body {
    padding: 0 45px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
  }
  .info-head {
    margin-top: 20px;
    text-align: center;
  }
}

#topic-sidebar {
  position: fixed;
  display: none;
  width: 260px;

  @media (min-width: 960px) {
    display: block;
    width: 240px;
  }

  @media (min-width: 1200px) {
    display: block;
    width: 292px;
  }

  .group {
    text-align: center;
    margin-bottom: 20px;
  }

  .buttons {
    margin-top: 20px;
    .likes {
      a {
        display: block;
        width: 90px;
        margin: 0 auto;
        border-radius: 5px;
        padding: 10px 0;
      }
      a:link, a:hover, a:visited {
        text-decoration: none;
        color: #333;
      }
      a:hover {
        background: rgba(0, 0, 0, 0.03);
      }
      i.fa {
        display: block;
        font-size: 40px;
        margin-bottom: 10px;
        color: #666;
      }
      a.active {
        i.fa {
          color: #e76f3c;
        }
      }
    }
  }
  .reply-buttons {
    text-align: center;
    .total {
      margin-bottom: 10px;
    }
  }
  a.btn-move-page {
    color: #666;
  }
}

#replies {
  margin-bottom: 30px;
  .panel-body {
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .info {
    color: #aaa;
    margin-bottom: 6px;
    .uname {
      color: #777;
      font-weight: bold;
    }
    .opts {
      a {
        font-size: 13px;
        margin-left: 5px;
        color: #999;
        &:hover {
          color: #333;
        }
      }
      a.edit {
        display: none;
      }
    }
  }
  .reply {
    margin: 0 -15px;
    padding: 10px 15px;
    position: relative;
    border-bottom: 1px solid #eee;
    padding-left: 74px;

    &.reply-system,
    &.reply-deleted {
      padding: 8px 15px;
      font-size: 12px;
      color: #666;
      border-bottom: 1px solid #F0F0F0;

      img.media-object {
        border-radius: 180px;
        display: inline-block;
        margin-right: 3px;
        vertical-align: text-bottom;
      }

      .time {
        margin-left: 4px;
        color: #aaa;
      }
    }

    .infos {
      min-height: 48px;
    }
    .avatar {
      position: absolute;
      top: 10px;
      left: 15px;
    }
    &:last-child {
      border-bottom: 0px;
    }
    &.none {
      text-align: center;
      color: #999;
      min-height: 32px;
    }
    &.deleted {
      margin-bottom: 0px;
      min-height: 24px !important;
      padding-top: 5px;
      padding-bottom: 0px;
      background: #f9f9f9;
      color: #aaa;
      text-decoration: line-through;
      font-size: 12px;
      text-align: center;
      .media-body {
        margin-left: 0px;
      }
    }
    &.light {
      background: #F7F2FC;
    }
    &.popular {
      background: #fffce9;
    }

    .media-body {
    }
    .avatar {
      text-align: center;
    }
    .info {
      .name {
        a {
          color: $blueLight;
        }
      }
      font-size: 12px;
      .reply-floor {
        color: #7AA87A;
      }
    }
    .opts {
      a {
        display: inline-block;
        vertical-align: baseline;
        line-height: 22px;
        padding: 2px 5px;
        height: 22px;
        min-width: 22px;
        text-align: center;
      }
    }
    @media (min-width: 1026px) {
      .hideable {
        display: none;
      }
    }
    &:hover {
      .hideable {
        display: inline-block;
      }
    }
  }

  @media (max-width: 480px) {
    .reply {
      padding-left: 57px;
    }
  }
}

#notifications {
  .panel-heading {
    font-size: 16px;
    line-height: 32px;
  }
  .panel-body {
    padding-top: 0;
    padding-bottom: 0;
  }
  .notification-group {
    padding: 10px;

    .group-title {
      color: #aaa;
      border-bottom: 1px solid #eee;
      padding: 5px 0;
    }
  }


  .notification {
    position: relative;
    margin-bottom: 15px;
    padding: 10px 15px;
    &:last-child {
      margin-bottom: 0px;
      border-bottom: 0px;
      padding-bottom: 0px;
    }
    .unread {
      color: $blueLight;
      font-size: 10px;
      position: absolute;
      right: 5px;
      top: 20px;
    }
    .avatar {
      text-align: center;
    }
    .info {
      color: #999;
      margin-bottom: 8px;
      font-size: 13px;
    }
    .date {
      font-size: 12px;
      color: #aaa;
    }
    .media-content {
      color: #999;

      a {
        color: #999 !important;
      }
      p {
        font-size: 13px;
        margin-bottom: 6px;
      }
      p:last-child {
        margin-bottom: 0;
      }
    }
  }
}

/* Social Share Button */
.social-share-button {
  margin-top: 10px;
  height: 16px;
  a {
    i.fa {
      font-size: 24px;
      margin: 0 4px;
    }
    &:link, &:visited {
      color: #777;
    }
    &:hover {
      color: $blueLight;
    }
  }
}

.popover-content {
  .social-share-button {
    display: block;
  }
}

/* Markdown Styles */
.markdown {
  position: relative;
  line-height: 1.8em;
  font-size: 14px;
  text-overflow: ellipsis;
  word-wrap: break-word;
  font-family: "PingFang SC", "Hiragino Sans GB", Helvetica, Arial, "Source Han Sans CN", Roboto, "Heiti SC", "Microsoft Yahei", sans-serif !important;
  img {
    max-width: 100%;
  }
  p,
  pre,
  ul,
  ol,
  blockquote {
    margin-bottom: 16px;
  }

  p {
    font-size: 14px;
    line-height: 1.5em;
  }
  hr {
    border: 2px dashed $gray;
    border-bottom: 0px;
    margin: 18px auto;
    width: 50%;
  }
  blockquote {
    margin: 0 18px 15px 18px;
    padding-left: 32px;
    border: 0px;
    quotes: "\201C""\201D""\2018""\2019";
    position: relative;
    line-height: 1.45;
    p {
      display: inline;
      color: #999;
    }
    &:before,
    &:after {
      display: block;
      content: "\201C";
      font-size: 35px;
      position: absolute;
      font-family: serif;
      left: 0px;
      top: 0px;
      color: #aaa;
    }
  }
  pre {
    font-family: Menlo, Monaco, "Courier New", monospace;
    font-size: 12px;
    background-color: #F5F5F5;
    border: 0px;
    padding: 5px;
    color: #444;
    overflow: auto;
    border-radius: 0px;
    code {
      display: block;
      line-height: 150%;
      padding: 0 !important;
      font-size: 12px !important;
      background-color: #F5F5F5 !important;
      border: none !important;
    }
  }
  p:last-child,
  blockquote:last-child,
  pre:last-child {
    margin-bottom: 0;
  }
  pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
  }

  pre::-webkit-scrollbar-thumb:horizontal {
    width: 25px;
    background-color: #ccc;
    -webkit-border-radius: 4px;
  }

  pre::-webkit-scrollbar-track-piece {
    margin-bottom: 10px;
    background-color: #e5e5e5;
    border-bottom-left-radius: 4px 4px;
    border-bottom-right-radius: 4px 4px;
    border-top-left-radius: 4px 4px;
    border-top-right-radius: 4px 4px;
  }

  pre::-webkit-scrollbar-thumb:vertical {
    height: 25px;
    background-color: #ccc;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px white;
  }

  code {
    font-size: 12px !important;
    background-color: #F5F5F5 !important;
    color: #444 !important;
    padding: 1px 2px !important;
    border: 0px;
    margin: 2px;
    border-radius: 0px;
    word-break: break-all;
    line-height: 20px;
    font-family: Monaco, Menlo, "Courier New", monospace;
  }
  a:link,
  a:visited {
    color: #0069D6 !important;
    text-decoration: none !important;
  }
  a:hover {
    text-decoration: underline !important;
    color: #00438A !important;
  }
  a.mention-floor {
    color: #60b566 !important;
    margin-right: 3px;
  }
  a.mention {
    color: #777 !important;
    font-weight: bold;
    margin-right: 2px;
    b {
      color: #777 !important;
      font-weight: normal;
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: bold;
    text-align: left;
    margin-top: 10px !important;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 26px !important;
    text-align: center;
    margin-bottom: 30px !important;
  }
  h2,
  h3,
  h4 {
    text-align: left;
    font-weight: bold;
    font-size: 16px !important;
    line-height: 100%;
    margin: 0;
    color: #555;
    margin-top: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }
  h2 {
    font-size: 20px !important;
    border-bottom-width: 2px;
    padding-bottom: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #111;
  }
  h3 {
    font-size: 18px !important;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333;
  }
  h5, h6 {
    font-size: 15px;
    line-height: 100%;
    color: #777;
  }
  h6 {
    font-size: 14px;
    color: #999;
  }

  strong {
    color: #000;
    font-size: 16px;
  }
  ul,
  ol {
    list-style-position: inside;
    list-style-type: square;
    margin: 0;
    margin-bottom: 20px;
    padding: 0px 20px;
    p,
    blockquote,
    pre {
      margin-bottom: 8px;
    }
    li {
      line-height: 1.6em;
      padding: 2px 0;
      color: #333;
    }
    ul {
      list-style-type: circle;
      margin-bottom: 0px;
    }
  }
  ol {
    list-style-type: decimal;
    ol {
      list-style-type: lower-alpha;
      margin-bottom: 0px;
    }
  }
  img {
    vertical-align: top;
    max-width: 100%;
  }
  a.zoom-image {
    cursor: zoom-in;
  }
  a.at_floor {
    color: #60B566 !important;
  }
  a.at_user {
    color: #0069D6 !important;
  }
  img.twemoji {
    width: 20px;
  }
}

footer {
  margin: 0;
  color: $blackLight;
  a {
    color: #666;
  }
  .links {
    color: #ddd;
  }
  .copyright {
    color: #333;
    font-size: 16px;
  }
  .friends {
    text-align: right;
  }
  .row > div {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.search-result {
  em {
    color: #000;
    background-color: #ff0;
  }

  .topic:hover {
    background-color: #faebcc;
  }

}

#go_top {
  background: grey;
  text-align: center;
  border: 1px solid grey;
  display: none;
  height: 40px;
  width: 40px;
  overflow: hidden;
  position: fixed;
  bottom: 15px;
  right: 15px;
  padding-top: 3px;
  font-size: 30px;
}

@media (min-width: 992px) {
  .author-info {
    .div-follow-user {
      width: 100%;
    }
    .div-block-user {
      width: 100%;
      padding-top: 2px;
    }
  }
}

@media (min-width: 1200px) {
  .author-info {
    .div-follow-user {
      width: 50%;
    }
    .div-block-user {
      width: 50%;
      padding-top: 0px;
    }
  }
}

#android-app {
  border-radius: 0px;
}

.dz-preview {
  display: none;
}

textarea.div-dropzone-focus {
  border-color: #BBE1C9;
  background: #fafafa;
}

#mobile-search-form {
  margin-bottom: 20px;
}

#main {
  min-height: 500px;
}

.topic-copyright {
  color: grey;
  border: 1px solid rgba(0,0,0,0.07);
}